using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._UtilityNetworkTools
{
    /// <summary>
    /// <para>Add Reduce Junction By Attribute Rule</para>
    /// <para>Add a reduce junction by attribute rule to a diagram template</para>
    /// <para>将按属性减少交汇点规则添加到逻辑示意图模板</para>
    /// </summary>    
    [DisplayName("Add Reduce Junction By Attribute Rule")]
    public class AddReduceJunctionByAttributeRule : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public AddReduceJunctionByAttributeRule()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_utility_network">
        /// <para>Input Network</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        /// <param name="_template_name">
        /// <para>Input Diagram Template</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        /// <param name="_is_active">
        /// <para>Active</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        /// <param name="_junction_source">
        /// <para>Junction Source to Reduce</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        public AddReduceJunctionByAttributeRule(object _in_utility_network, object _template_name, _is_active_value _is_active, object _junction_source)
        {
            this._in_utility_network = _in_utility_network;
            this._template_name = _template_name;
            this._is_active = _is_active;
            this._junction_source = _junction_source;
        }
        public override string ToolboxName => "Utility Network Tools";

        public override string ToolName => "Add Reduce Junction By Attribute Rule";

        public override string CallName => "un.AddReduceJunctionByAttributeRule";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_utility_network, _template_name, _is_active.GetGPValue(), _junction_source, _where_clause, _connectivity_options.GetGPValue(), _unconnected_junctions.GetGPValue(), _one_connected_junction.GetGPValue(), _two_connected_junctions.GetGPValue(), _edges_attributes, _description, _out_utility_network, _out_template_name];

        /// <summary>
        /// <para>Input Network</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Network")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_utility_network { get; set; }


        /// <summary>
        /// <para>Input Diagram Template</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Diagram Template")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _template_name { get; set; }


        /// <summary>
        /// <para>Active</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Active")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public _is_active_value _is_active { get; set; }

        public enum _is_active_value
        {
            /// <summary>
            /// <para>ACTIVE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("ACTIVE")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>INACTIVE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("INACTIVE")]
            [GPEnumValue("false")]
            _false,

        }

        /// <summary>
        /// <para>Junction Source to Reduce</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Junction Source to Reduce")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _junction_source { get; set; }


        /// <summary>
        /// <para>Expression</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Expression")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _where_clause { get; set; } = null;


        /// <summary>
        /// <para>Reduce Junctions With</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Reduce Junctions With")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _connectivity_options_value _connectivity_options { get; set; } = _connectivity_options_value._MAX_2_CONNECTED_JUNCTIONS;

        public enum _connectivity_options_value
        {
            /// <summary>
            /// <para>MAX_2_CONNECTED_JUNCTIONS</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("MAX_2_CONNECTED_JUNCTIONS")]
            [GPEnumValue("MAX_2_CONNECTED_JUNCTIONS")]
            _MAX_2_CONNECTED_JUNCTIONS,

            /// <summary>
            /// <para>MIN_3_CONNECTED_JUNCTIONS</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("MIN_3_CONNECTED_JUNCTIONS")]
            [GPEnumValue("MIN_3_CONNECTED_JUNCTIONS")]
            _MIN_3_CONNECTED_JUNCTIONS,

        }

        /// <summary>
        /// <para>Reduce if unconnected</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Reduce if unconnected")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _unconnected_junctions_value _unconnected_junctions { get; set; } = _unconnected_junctions_value._false;

        public enum _unconnected_junctions_value
        {
            /// <summary>
            /// <para>REDUCE_UNCONNECTED_JCT</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("REDUCE_UNCONNECTED_JCT")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>KEEP_UNCONNECTED_JCT</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("KEEP_UNCONNECTED_JCT")]
            [GPEnumValue("false")]
            _false,

        }

        /// <summary>
        /// <para>Reduce if connected to a single junction</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Reduce if connected to a single junction")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _one_connected_junction_value _one_connected_junction { get; set; } = _one_connected_junction_value._false;

        public enum _one_connected_junction_value
        {
            /// <summary>
            /// <para>REDUCE_JCT_TO_1JCT</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("REDUCE_JCT_TO_1JCT")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>KEEP_JCT_TO_1JCT</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("KEEP_JCT_TO_1JCT")]
            [GPEnumValue("false")]
            _false,

        }

        /// <summary>
        /// <para>Reduce if connected to 2 different junctions</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Reduce if connected to 2 different junctions")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _two_connected_junctions_value _two_connected_junctions { get; set; } = _two_connected_junctions_value._true;

        public enum _two_connected_junctions_value
        {
            /// <summary>
            /// <para>REDUCE_JCT_TO_2JCTS</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("REDUCE_JCT_TO_2JCTS")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>KEEP_JCT_TO_2JCTS</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("KEEP_JCT_TO_2JCTS")]
            [GPEnumValue("false")]
            _false,

        }

        /// <summary>
        /// <para>Edge Attribute Names</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Edge Attribute Names")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public List<object> _edges_attributes { get; set; } = null;


        /// <summary>
        /// <para>Description</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Description")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _description { get; set; } = null;


        /// <summary>
        /// <para>Output Network</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Network")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_utility_network { get; set; }


        /// <summary>
        /// <para>Output Diagram Template</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Diagram Template")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_template_name { get; set; }


        public AddReduceJunctionByAttributeRule SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}